<%--
  Created by IntelliJ IDEA.
  User: Tang'ya'kang
  Date: 2023/5/7
  Time: 23:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
    pageContext.setAttribute("key","pageContext");
    request.setAttribute("key","request");
    session.setAttribute("key","session");
    application.setAttribute("key","application");
    %>
    pageContext的value：<%=pageContext.getAttribute("key")%> <br/>
    request的value:<%=request.getAttribute("key")%><br/>
    session的value:<%=session.getAttribute("key")%><br/>
    application的value:<%=application.getAttribute("key")%>
<%--    <%--%>
<%--        request.getRequestDispatcher("/scope2.jsp").forward(request,response);--%>
<%--    %>--%>
    <jsp:forward page="scope2.jsp"></jsp:forward>
</body>
</html>
